package study.saas.order.facade.impl;

import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.stereotype.Component;
import study.saas.order.entity.Commodity;
import study.saas.order.entity.Lottery;
import study.saas.order.service.LotteryFacade;
import study.saas.order.service.LotteryService;
import study.saas.order.service.model.CommodityLotteryDTO;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author sunyi
 */
@Component("lotteryFacade")
@Service(version = "1.0.0")
public class LotteryFacadeImpl implements LotteryFacade {
    @Resource
    private LotteryService service;

    @Override
    public Lottery findOne(Integer id) {
        return null;
    }

    @Override
    public Lottery save(Lottery entity) {
        return null;
    }

    @Override
    public List<Lottery> save(List<Lottery> entityList) {
        return null;
    }

    @Override
    public void deleteById(Integer id) {

    }

    @Override
    public List<CommodityLotteryDTO> getCommodity() {
        return service.getCommodity();
    }
}
